<template>
  <div class="crumbox">
    <template v-for="(item, index) in arr">
      <a href="#" :key="index">{{ item.name }}</a>
      <i v-if="index < arr.length - 1"> / </i>
    </template>
    <!-- <a href="#">首页</a> / <a href="#">全部商品</a> /
    <a href="#">商品详情</a> -->
  </div>
</template>

<script>
export default {
  props: ["arr"],
};
</script>

<style lang='less' scoped>
.crumbox {
  a {
    text-decoration: none;
    color: black;
    line-height: 25px;
    font-size: 18px;
  }
}
</style>